<?php
include_once("codelibrary/inc/variables.php");
include_once("session.php");
include_once("codelibrary/inc/functions.php");

function query($query) {
	$res = mysql_query($query) or die(mysql_error().'Query Error<br/>'.$query);
	return $res;
}

$business_id = $_SESSION['business_id'];

if($_GET['as_id'] != "") {
	$query = "select * from $appointment_status_type_table where as_id='".$_GET['as_id']."' and business_id='$business_id'";
	$row = mysql_fetch_object(query($query));
	$TR_Description = $row->description;
}

if(isset($_REQUEST['Submit']))
{
    $description=$_REQUEST['TR_Description'];
	$color = $_REQUEST['TN_Color'];
	
	$statusid = $_POST['statusid'];
	if($statusid != "") {
		$query = "update $appointment_status_type_table set color='$color',
				  description='$description' where as_id=$statusid and business_id='$business_id'";
	} else {
		$query = "insert into $appointment_status_type_table set 
		business_id='$business_id',description='$description',color='$color'";
	}

	mysql_query($query);
	header("Location: appointment-status-view-details.php?msg=Added");
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Online Appointment</title>
<script type="text/javascript" src="codelibrary/js/common.Js"></script>
<script type="text/javascript">
function submitform()
{
 
	if(ValidateForm(document.frm))
	{
	    return true;
	}
	else
	{
	    return false;
	}
}
</script>

<base >
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<title>Staff Management</title>

</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<table cellpadding="0" cellspacing="0" border="0"><tr>
  <td style="background:url(images/top.gif) repeat-x top; ">
<table cellpadding="0" cellspacing="0" border="0" style="width:764px" align="center"> 
	<tr>
		<td>
			<table cellpadding="0" cellspacing="0" border="0" style="height:57">
				<tr>
					<td height="57">
					<? html_header(); ?>
					</td>
				</tr>
			</table>

		</td>
	</tr>
	<tr>
		<td>

<table border="0" width="105%" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" class="col_left">

<table border="0"cellspacing="0" cellpadding="0" class="box_width_left">
	<tr><td width="100%">
		<table border="0" cellspacing="0" cellpadding="0">
<tr><td>

<table border="0" width="100%" cellspacing="0" cellpadding="0" class="">
  <tr>
    <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="0"  class="" height="91">
  <tr>
    <td align="center" height="91">
    <img border="0" src="images/logo.jpg" width="208" height="86"></td>
  </tr>
</table>
</td>
  </tr>
</table>
</td></tr>


          <tr>
            <td>
<table border="0" width="100%" cellspacing="0" cellpadding="0"  class="box_header_txt" height="48">
  <tr>
    <td style="background-image: url(images/1_bg2-2.gif)" height="1">
      <p style="margin-top: 16"> </td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0"   style="border-bottom:12px solid #ffffff;">
  <tr>
    <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="0"  style="margin-bottom:0px;background:#7C7C7C url(images/1_line.gif) no-repeat left bottom;" >
  <tr>
    <td  style="padding:3px 16px 8px 25px;">
      <? include("link1.php");?>
</td>
  </tr>
</table>
</td>
  </tr>
</table>
            </td>
          </tr>

          <tr>
            <td class="">&nbsp;
</td>
          </tr>

		</table>
	</td>
	<td><img src="images/spacer.gif" border="0" alt="" width="15" height="1"></td></tr>
</table>

    </td>

    <td width="100%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0"  class="cont_header_txt">
  <tr>
    <td>
			<table border="0" cellpadding="0" cellspacing="0" bgcolor="#EAEAEA" class="cont_header_txt">
				<tr>
					<td><img src="images/1_q1.gif" border="0" alt="" width="45" height="39"></td>
					<td style="width:100%">>Create Personnel Record</td>
					<td><img src="images/1_q2.gif" border="0" alt="" width="10" height="39"></td>
				</tr>
			</table>										 
			</td>
  </tr>
</table>



						<table cellpadding="0" cellspacing="0" border="0" style="border:0px solid #DEDEDE; border-width:0px 1px 0px 1px;">
                          <tr>
                            <td style="background:#ffffff;border:0px solid #ffffff; border-width:18px 5px 10px 5px;"><!-- new_products //-->
                                <table border="0" width="" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><form name="frm" action="" method="post" onSubmit="return submitform();">
                                <table width="108%" border="1" cellpadding="3" cellspacing="2" bordercolor="#FFDBCA" class="table">
                                  <tr>
                                    <td width="29%" height="27" valign="bottom" class="simpletxt">&nbsp;Description </td>
                                    <td height="27" colspan="2" valign="top" nowrap class="smallText"><label>
                                      <input name="TR_Description" type="text" value="<? if(isset($TR_Description)) echo $TR_Description;?>" size="30">
                                      </label></td>
                                  </tr>
                                   <tr>
                                    <td height="27" valign="bottom" class="simpletxt">&nbsp;Color </td>
                                    <td height="27" colspan="2" valign="bottom" nowrap class="smallText"><label>
                                      <select name="TN_Color">
              <option value="#FF0066" style="font-family:'Arial';background-color:#FF0066;font-size:10pt;">Pink-Pink-Red</option>
              <option value="#FF0099" style="font-family:'Arial';background-color:#FF0099;font-size:10pt;">Pink-Pink-Magenta</option>
              <option value="#FF0033" style="font-family:'Arial';background-color:#FF0033;font-size:10pt;">Red-Red-Pink</option>
              <option value="#FF00CC" style="font-family:'Arial';background-color:#FF00CC;font-size:10pt;">Magenta-Magenta-Pink</option>
              <option value="#CC0033" style="font-family:'Arial';background-color:#CC0033;font-size:10pt;">Dark Red-Pink</option>
              <option value="#CC0099" style="font-family:'Arial';background-color:#CC0099;font-size:10pt;">Dark Magenta-Pink</option>
              <option value="#FF3366" style="font-family:'Arial';background-color:#FF3366;font-size:10pt;">Light Red-Pink</option>
              <option value="#FF33CC" style="font-family:'Arial';background-color:#FF33CC;font-size:10pt;">Light Magenta-Pink</option>
              <option value="#990033" style="font-family:'Arial';background-color:#990033;font-size:10pt;">Dark Pink-Red</option>
              <option value="#990066" style="font-family:'Arial';background-color:#990066;font-size:10pt;">Dark Pink-Magenta</option>
              <option value="#FF6699" style="font-family:'Arial';background-color:#FF6699;font-size:10pt;">Light Pink-Red</option>
              <option value="#FF66CC" style="font-family:'Arial';background-color:#FF66CC;font-size:10pt;">Light Pink-Magenta</option>
              <option value="#CC3366" style="font-family:'Arial';background-color:#CC3366;font-size:10pt;">Medium Pink-Red</option>
              <option value="#CC3399" style="font-family:'Arial';background-color:#CC3399;font-size:10pt;">Medium Pink-Magenta</option>
              <option value="#FF9900" style="font-family:'Arial';background-color:#FF9900;font-size:10pt;">Orange-Orange-Yellow</option>
              <option value="#FF6600" style="font-family:'Arial';background-color:#FF6600;font-size:10pt;">Orange-Orange-Red</option>
              <option value="#FFCC00" style="font-family:'Arial';background-color:#FFCC00;font-size:10pt;">Yellow-Yellow-Orange</option>
              <option value="#FF3300" style="font-family:'Arial';background-color:#FF3300;font-size:10pt;">Red-Red-Orange</option>
              <option value="#CC9900" style="font-family:'Arial';background-color:#CC9900;font-size:10pt;">Dark Yellow-Orange</option>
              <option value="#CC3300" style="font-family:'Arial';background-color:#CC3300;font-size:10pt;">Dark Red-Orange</option>
              <option value="#FFCC33" style="font-family:'Arial';background-color:#FFCC33;font-size:10pt;">Light Yellow-Orange</option>
              <option value="#FF6633" style="font-family:'Arial';background-color:#FF6633;font-size:10pt;">Light Red-Orange</option>
              <option value="#996600" style="font-family:'Arial';background-color:#996600;font-size:10pt;">Dark Orange-Yellow</option>
              <option value="#993300" style="font-family:'Arial';background-color:#993300;font-size:10pt;">Dark Orange-Red</option>
              <option value="#FFCC66" style="font-family:'Arial';background-color:#FFCC66;font-size:10pt;">Light Orange-Yellow</option>
              <option value="#FF9966" style="font-family:'Arial';background-color:#FF9966;font-size:10pt;">Light Orange-Red</option>
              <option value="#CC9933" style="font-family:'Arial';background-color:#CC9933;font-size:10pt;">Medium Orange-Yellow</option>
              <option value="#CC6633" style="font-family:'Arial';background-color:#CC6633;font-size:10pt;">Medium Orange-Red</option>
              <option value="#66FF00" style="font-family:'Arial';background-color:#66FF00;font-size:10pt;">Spring-Spring-Green</option>
              <option value="#99FF00" style="font-family:'Arial';background-color:#99FF00;font-size:10pt;">Spring-Spring-Yellow</option>
              <option value="#33FF00" style="font-family:'Arial';background-color:#33FF00;font-size:10pt;">Green-Green-Spring</option>
              <option value="#CCFF00" style="font-family:'Arial';background-color:#CCFF00;font-size:10pt;">Yellow-Yellow-Spring</option>
              <option value="#33CC00" style="font-family:'Arial';background-color:#33CC00;font-size:10pt;">Dark Green-Spring</option>
              <option value="#99CC00" style="font-family:'Arial';background-color:#99CC00;font-size:10pt;">Dark Yellow-Spring</option>
              <option value="#66FF33" style="font-family:'Arial';background-color:#66FF33;font-size:10pt;">Light Green-Spring</option>
              <option value="#CCFF33" style="font-family:'Arial';background-color:#CCFF33;font-size:10pt;">Light Yellow-Spring</option>
              <option value="#339900" style="font-family:'Arial';background-color:#339900;font-size:10pt;">Dark Spring-Green</option>
              <option value="#669900" style="font-family:'Arial';background-color:#669900;font-size:10pt;">Dark Spring-Yellow</option>
              <option value="#99FF66" style="font-family:'Arial';background-color:#99FF66;font-size:10pt;">Light Spring-Green</option>
              <option value="#CCFF66" style="font-family:'Arial';background-color:#CCFF66;font-size:10pt;">Light Spring-Yellow</option>
              <option value="#66CC33" style="font-family:'Arial';background-color:#66CC33;font-size:10pt;">Medium Spring-Green</option>
              <option value="#99CC33" style="font-family:'Arial';background-color:#99CC33;font-size:10pt;">Medium Spring-Yellow</option>
              <option value="#00FF99" style="font-family:'Arial';background-color:#00FF99;font-size:10pt;">Teal-Teal-Cyan</option>
              <option value="#00FF66" style="font-family:'Arial';background-color:#00FF66;font-size:10pt;">Teal-Teal-Green</option>
              <option value="#00FFCC" style="font-family:'Arial';background-color:#00FFCC;font-size:10pt;">Cyan-Cyan-Teal</option>
              <option value="#00FF33" style="font-family:'Arial';background-color:#00FF33;font-size:10pt;">Green-Green-Teal</option>
              <option value="#00CC99" style="font-family:'Arial';background-color:#00CC99;font-size:10pt;">Dark Cyan-Teal</option>
              <option value="#00CC33" style="font-family:'Arial';background-color:#00CC33;font-size:10pt;">Dark Green-Teal</option>
              <option value="#33FFCC" style="font-family:'Arial';background-color:#33FFCC;font-size:10pt;">Light Cyan-Teal</option>
              <option value="#33FF66" style="font-family:'Arial';background-color:#33FF66;font-size:10pt;">Light Green-Teal</option>
              <option value="#009966" style="font-family:'Arial';background-color:#009966;font-size:10pt;">Dark Teal-Cyan</option>
              <option value="#009933" style="font-family:'Arial';background-color:#009933;font-size:10pt;">Dark Teal-Green</option>
              <option value="#66FFCC" style="font-family:'Arial';background-color:#66FFCC;font-size:10pt;">Light Teal-Cyan</option>
              <option value="#66FF99" style="font-family:'Arial';background-color:#66FF99;font-size:10pt;">Light Teal-Green</option>
              <option value="#33CC99" style="font-family:'Arial';background-color:#33CC99;font-size:10pt;">Medium Teal-Cyan</option>
              <option value="#33CC66" style="font-family:'Arial';background-color:#33CC66;font-size:10pt;">Medium Teal-Green</option>
              <option value="#0066FF" style="font-family:'Arial';background-color:#0066FF;font-size:10pt;">Azure-Azure-Blue</option>
              <option value="#0099FF" style="font-family:'Arial';background-color:#0099FF;font-size:10pt;">Azure-Azure-Cyan</option>
              <option value="#0033FF" style="font-family:'Arial';background-color:#0033FF;font-size:10pt;">Blue-Blue-Azure</option>
              <option value="#00CCFF" style="font-family:'Arial';background-color:#00CCFF;font-size:10pt;">Cyan-Cyan-Azure</option>
              <option value="#0033CC" style="font-family:'Arial';background-color:#0033CC;font-size:10pt;">Dark Blue-Azure</option>
              <option value="#0099CC" style="font-family:'Arial';background-color:#0099CC;font-size:10pt;">Dark Cyan-Azure</option>
              <option value="#3366FF" style="font-family:'Arial';background-color:#3366FF;font-size:10pt;">Light Blue-Azure</option>
              <option value="#33CCFF" style="font-family:'Arial';background-color:#33CCFF;font-size:10pt;">Light Cyan-Azure</option>
              <option value="#003399" style="font-family:'Arial';background-color:#003399;font-size:10pt;">Dark Azure-Blue</option>
              <option value="#006699" style="font-family:'Arial';background-color:#006699;font-size:10pt;">Dark Azure-Cyan</option>
              <option value="#6699FF" style="font-family:'Arial';background-color:#6699FF;font-size:10pt;">Light Azure-Blue</option>
              <option value="#66CCFF" style="font-family:'Arial';background-color:#66CCFF;font-size:10pt;">Light Azure-Cyan</option>
              <option value="#3366CC" style="font-family:'Arial';background-color:#3366CC;font-size:10pt;">Medium Azure-Blue</option>
              <option value="#3399CC" style="font-family:'Arial';background-color:#3399CC;font-size:10pt;">Medium Azure-Cyan</option>
              <option value="#9900FF" style="font-family:'Arial';background-color:#9900FF;font-size:10pt;">Violet-Violet-Magenta</option>
              <option value="#6600FF" style="font-family:'Arial';background-color:#6600FF;font-size:10pt;">Violet-Violet-Blue</option>
              <option value="#CC00FF" style="font-family:'Arial';background-color:#CC00FF;font-size:10pt;">Magenta-Magenta-Violet</option>
              <option value="#3300FF" style="font-family:'Arial';background-color:#3300FF;font-size:10pt;">Blue-Blue-Violet</option>
              <option value="#9900CC" style="font-family:'Arial';background-color:#9900CC;font-size:10pt;">Dark Magenta-Violet</option>
              <option value="#3300CC" style="font-family:'Arial';background-color:#3300CC;font-size:10pt;">Dark Blue-Violet</option>
              <option value="#CC33FF" style="font-family:'Arial';background-color:#CC33FF;font-size:10pt;">Light Magenta-Violet</option>
              <option value="#6633FF" style="font-family:'Arial';background-color:#6633FF;font-size:10pt;">Light Blue-Violet</option>
              <option value="#660099" style="font-family:'Arial';background-color:#660099;font-size:10pt;">Dark Violet-Magenta</option>
              <option value="#330099" style="font-family:'Arial';background-color:#330099;font-size:10pt;">Dark Violet-Blue</option>
              <option value="#CC66FF" style="font-family:'Arial';background-color:#CC66FF;font-size:10pt;">Light Violet-Magenta</option>
              <option value="#9966FF" style="font-family:'Arial';background-color:#9966FF;font-size:10pt;">Light Violet-Blue</option>
              <option value="#9933CC" style="font-family:'Arial';background-color:#9933CC;font-size:10pt;">Medium Violet-Magenta</option>
              <option value="#6633CC" style="font-family:'Arial';background-color:#6633CC;font-size:10pt;">Medium Violet-Blue</option>
              <option value="#330033" style="font-family:'Arial';background-color:#330033;font-size:10pt;">Obscure Weak Magenta</option>
              <option value="#660066" style="font-family:'Arial';background-color:#660066;font-size:10pt;">Obscure Dull Magenta</option>
              <option value="#990099" style="font-family:'Arial';background-color:#990099;font-size:10pt;">Dark Faded Magenta</option>
              <option value="#CC00CC" style="font-family:'Arial';background-color:#CC00CC;font-size:10pt;">Dark Hard Magenta</option>
              <option value="#FF00FF" style="font-family:'Arial';background-color:#FF00FF;font-size:10pt;">Magenta</option>
              <option value="#663366" style="font-family:'Arial';background-color:#663366;font-size:10pt;">Dark Weak Magenta</option>
              <option value="#993399" style="font-family:'Arial';background-color:#993399;font-size:10pt;">Dark Dull Magenta</option>
              <option value="#CC33CC" style="font-family:'Arial';background-color:#CC33CC;font-size:10pt;">Medium Faded Magenta</option>
              <option value="#FF33FF" style="font-family:'Arial';background-color:#FF33FF;font-size:10pt;">Light Hard Magenta</option>
              <option value="#996699" style="font-family:'Arial';background-color:#996699;font-size:10pt;">Medium Weak Magenta</option>
              <option value="#CC66CC" style="font-family:'Arial';background-color:#CC66CC;font-size:10pt;">Light Dull Magenta</option>
              <option value="#FF66FF" style="font-family:'Arial';background-color:#FF66FF;font-size:10pt;">Light Faded Magenta</option>
              <option value="#CC99CC" style="font-family:'Arial';background-color:#CC99CC;font-size:10pt;">Light Weak Magenta</option>
              <option value="#FF99FF" style="font-family:'Arial';background-color:#FF99FF;font-size:10pt;">Pale Dull Magenta</option>
              <option value="#FFCCFF" style="font-family:'Arial';background-color:#FFCCFF;font-size:10pt;">Pale Weak Magenta</option>
              <option value="#330000" style="font-family:'Arial';background-color:#330000;font-size:10pt;">Obscure Weak Red</option>
              <option value="#660000" style="font-family:'Arial';background-color:#660000;font-size:10pt;">Obscure Dull Red</option>
              <option value="#990000" style="font-family:'Arial';background-color:#990000;font-size:10pt;">Dark Faded Red</option>
              <option value="#CC0000" style="font-family:'Arial';background-color:#CC0000;font-size:10pt;">Dark Hard Red</option>
              <option value="#FF0000" style="font-family:'Arial';background-color:#FF0000;font-size:10pt;">Red</option>
              <option value="#663333" style="font-family:'Arial';background-color:#663333;font-size:10pt;">Dark Weak Red</option>
              <option value="#993333" style="font-family:'Arial';background-color:#993333;font-size:10pt;">Dark Dull Red</option>
              <option value="#CC3333" style="font-family:'Arial';background-color:#CC3333;font-size:10pt;">Medium Faded Red</option>
              <option value="#FF3333" style="font-family:'Arial';background-color:#FF3333;font-size:10pt;">Light Hard Red</option>
              <option value="#996666" style="font-family:'Arial';background-color:#996666;font-size:10pt;">Medium Weak Red</option>
              <option value="#CC6666" style="font-family:'Arial';background-color:#CC6666;font-size:10pt;">Light Dull Red</option>
              <option value="#FF6666" style="font-family:'Arial';background-color:#FF6666;font-size:10pt;">Light Faded Red</option>
              <option value="#CC9999" style="font-family:'Arial';background-color:#CC9999;font-size:10pt;">Light Weak Red</option>
              <option value="#FF9999" style="font-family:'Arial';background-color:#FF9999;font-size:10pt;">Pale Dull Red</option>
              <option value="#FFCCCC" style="font-family:'Arial';background-color:#FFCCCC;font-size:10pt;">Pale Weak Red</option>
              <option value="#333300" style="font-family:'Arial';background-color:#333300;font-size:10pt;">Obscure Weak Yellow</option>
              <option value="#666600" style="font-family:'Arial';background-color:#666600;font-size:10pt;">Obscure Dull Yellow</option>
              <option value="#999900" style="font-family:'Arial';background-color:#999900;font-size:10pt;">Dark Faded Yellow</option>
              <option value="#CCCC00" style="font-family:'Arial';background-color:#CCCC00;font-size:10pt;">Dark Hard Yellow</option>
              <option value="#FFFF00" style="font-family:'Arial';background-color:#FFFF00;font-size:10pt;">Yellow</option>
              <option value="#666633" style="font-family:'Arial';background-color:#666633;font-size:10pt;">Dark Weak Yellow</option>
              <option value="#999933" style="font-family:'Arial';background-color:#999933;font-size:10pt;">Dark Dull Yellow</option>
              <option value="#CCCC33" style="font-family:'Arial';background-color:#CCCC33;font-size:10pt;">Medium Faded Yellow</option>
              <option value="#FFFF33" style="font-family:'Arial';background-color:#FFFF33;font-size:10pt;">Light Hard Yellow</option>
              <option value="#999966" style="font-family:'Arial';background-color:#999966;font-size:10pt;">Medium Weak Yellow</option>
              <option value="#CCCC66" style="font-family:'Arial';background-color:#CCCC66;font-size:10pt;">Light Dull Yellow</option>
              <option value="#FFFF66" style="font-family:'Arial';background-color:#FFFF66;font-size:10pt;">Light Faded Yellow</option>
              <option value="#CCCC99" style="font-family:'Arial';background-color:#CCCC99;font-size:10pt;">Light Weak Yellow</option>
              <option value="#FFFF99" style="font-family:'Arial';background-color:#FFFF99;font-size:10pt;">Pale Dull Yellow</option>
              <option value="#FFFFCC" style="font-family:'Arial';background-color:#FFFFCC;font-size:10pt;">Pale Weak Yellow</option>
              <option value="#003300" style="font-family:'Arial';background-color:#003300;font-size:10pt;">Obscure Weak Green</option>
              <option value="#006600" style="font-family:'Arial';background-color:#006600;font-size:10pt;">Obscure Dull Green</option>
              <option value="#009900" style="font-family:'Arial';background-color:#009900;font-size:10pt;">Dark Faded Green</option>
              <option value="#00CC00" style="font-family:'Arial';background-color:#00CC00;font-size:10pt;">Dark Hard Green</option>
              <option value="#00FF00" style="font-family:'Arial';background-color:#00FF00;font-size:10pt;">Green</option>
              <option value="#336633" style="font-family:'Arial';background-color:#336633;font-size:10pt;">Dark Weak Green</option>
              <option value="#339933" style="font-family:'Arial';background-color:#339933;font-size:10pt;">Dark Dull Green</option>
              <option value="#33CC33" style="font-family:'Arial';background-color:#33CC33;font-size:10pt;">Medium Faded Green</option>
              <option value="#33FF33" style="font-family:'Arial';background-color:#33FF33;font-size:10pt;">Light Hard Green</option>
              <option value="#669966" style="font-family:'Arial';background-color:#669966;font-size:10pt;">Medium Weak Green</option>
              <option value="#66CC66" style="font-family:'Arial';background-color:#66CC66;font-size:10pt;">Light Dull Green</option>
              <option value="#66FF66" style="font-family:'Arial';background-color:#66FF66;font-size:10pt;">Light Faded Green</option>
              <option value="#99CC99" style="font-family:'Arial';background-color:#99CC99;font-size:10pt;">Light Weak Green</option>
              <option value="#99FF99" style="font-family:'Arial';background-color:#99FF99;font-size:10pt;">Pale Dull Green</option>
              <option value="#CCFFCC" style="font-family:'Arial';background-color:#CCFFCC;font-size:10pt;">Pale Weak Green</option>
              <option value="#003333" style="font-family:'Arial';background-color:#003333;font-size:10pt;">Obscure Weak Cyan</option>
              <option value="#006666" style="font-family:'Arial';background-color:#006666;font-size:10pt;">Obscure Dull Cyan</option>
              <option value="#009999" style="font-family:'Arial';background-color:#009999;font-size:10pt;">Dark Faded Cyan</option>
              <option value="#00CCCC" style="font-family:'Arial';background-color:#00CCCC;font-size:10pt;">Dark Hard Cyan</option>
              <option value="#00FFFF" style="font-family:'Arial';background-color:#00FFFF;font-size:10pt;">Cyan</option>
              <option value="#336666" style="font-family:'Arial';background-color:#336666;font-size:10pt;">Dark Weak Cyan</option>
              <option value="#339999" style="font-family:'Arial';background-color:#339999;font-size:10pt;">Dark Dull Cyan</option>
              <option value="#33CCCC" style="font-family:'Arial';background-color:#33CCCC;font-size:10pt;">Medium Faded Cyan</option>
              <option value="#33FFFF" style="font-family:'Arial';background-color:#33FFFF;font-size:10pt;">Light Hard Cyan</option>
              <option value="#669999" style="font-family:'Arial';background-color:#669999;font-size:10pt;">Medium Weak Cyan</option>
              <option value="#66CCCC" style="font-family:'Arial';background-color:#66CCCC;font-size:10pt;">Light Dull Cyan</option>
              <option value="#66FFFF" style="font-family:'Arial';background-color:#66FFFF;font-size:10pt;">Light Faded Cyan</option>
              <option value="#99CCCC" style="font-family:'Arial';background-color:#99CCCC;font-size:10pt;">Light Weak Cyan</option>
              <option value="#99FFFF" style="font-family:'Arial';background-color:#99FFFF;font-size:10pt;">Pale Dull Cyan</option>
              <option value="#CCFFFF" style="font-family:'Arial';background-color:#CCFFFF;font-size:10pt;">Pale Weak Cyan</option>
              <option value="#000033" style="font-family:'Arial';background-color:#000033;font-size:10pt;">Obscure Weak Blue</option>
              <option value="#000066" style="font-family:'Arial';background-color:#000066;font-size:10pt;">Obscure Dull Blue</option>
              <option value="#000099" style="font-family:'Arial';background-color:#000099;font-size:10pt;">Dark Faded Blue</option>
              <option value="#0000CC" style="font-family:'Arial';background-color:#0000CC;font-size:10pt;">Dark Hard Blue</option>
              <option value="#0000FF" style="font-family:'Arial';background-color:#0000FF;font-size:10pt;">Blue</option>
              <option value="#333366" style="font-family:'Arial';background-color:#333366;font-size:10pt;">Dark Weak Blue</option>
              <option value="#333399" style="font-family:'Arial';background-color:#333399;font-size:10pt;">Dark Dull Blue</option>
              <option value="#3333CC" style="font-family:'Arial';background-color:#3333CC;font-size:10pt;">Medium Faded Blue</option>
              <option value="#3333FF" style="font-family:'Arial';background-color:#3333FF;font-size:10pt;">Light Hard Blue</option>
              <option value="#666699" style="font-family:'Arial';background-color:#666699;font-size:10pt;">Medium Weak Blue</option>
              <option value="#6666CC" style="font-family:'Arial';background-color:#6666CC;font-size:10pt;">Light Dull Blue</option>
              <option value="#6666FF" style="font-family:'Arial';background-color:#6666FF;font-size:10pt;">Light Faded Blue</option>
              <option value="#9999CC" style="font-family:'Arial';background-color:#9999CC;font-size:10pt;">Light Weak Blue</option>
              <option value="#9999FF" style="font-family:'Arial';background-color:#9999FF;font-size:10pt;">Pale Dull Blue</option>
              <option value="#CCCCFF" style="font-family:'Arial';background-color:#CCCCFF;font-size:10pt;">Pale Weak Blue</option>
              <option value="#660033" style="font-family:'Arial';background-color:#660033;font-size:10pt;">Obscure Dull Pink</option>
              <option value="#993366" style="font-family:'Arial';background-color:#993366;font-size:10pt;">Dark Dull Pink</option>
              <option value="#CC6699" style="font-family:'Arial';background-color:#CC6699;font-size:10pt;">Light Dull Pink</option>
              <option value="#FF99CC" style="font-family:'Arial';background-color:#FF99CC;font-size:10pt;">Pale Dull Pink</option>
              <option value="#CC0066" style="font-family:'Arial';background-color:#CC0066;font-size:10pt;">Dark Hard Pink</option>
              <option value="#FF3399" style="font-family:'Arial';background-color:#FF3399;font-size:10pt;">Light Hard Pink</option>
              <option value="#663300" style="font-family:'Arial';background-color:#663300;font-size:10pt;">Obscure Dull Orange</option>
              <option value="#996633" style="font-family:'Arial';background-color:#996633;font-size:10pt;">Dark Dull Orange</option>
              <option value="#CC9966" style="font-family:'Arial';background-color:#CC9966;font-size:10pt;">Light Dull Orange</option>
              <option value="#FFCC99" style="font-family:'Arial';background-color:#FFCC99;font-size:10pt;">Pale Dull Orange</option>
              <option value="#CC6600" style="font-family:'Arial';background-color:#CC6600;font-size:10pt;">Dark Hard Orange</option>
              <option value="#FF9933" style="font-family:'Arial';background-color:#FF9933;font-size:10pt;">Light Hard Orange</option>
              <option value="#336600" style="font-family:'Arial';background-color:#336600;font-size:10pt;">Obscure Dull Spring</option>
              <option value="#669933" style="font-family:'Arial';background-color:#669933;font-size:10pt;">Dark Dull Spring</option>
              <option value="#99CC66" style="font-family:'Arial';background-color:#99CC66;font-size:10pt;">Light Dull Spring</option>
              <option value="#CCFF99" style="font-family:'Arial';background-color:#CCFF99;font-size:10pt;">Pale Dull Spring</option>
              <option value="#66CC00" style="font-family:'Arial';background-color:#66CC00;font-size:10pt;">Dark Hard Spring</option>
              <option value="#99FF33" style="font-family:'Arial';background-color:#99FF33;font-size:10pt;">Light Hard Spring</option>
              <option value="#006633" style="font-family:'Arial';background-color:#006633;font-size:10pt;">Obscure Dull Teal</option>
              <option value="#339966" style="font-family:'Arial';background-color:#339966;font-size:10pt;">Dark Dull Teal</option>
              <option value="#66CC99" style="font-family:'Arial';background-color:#66CC99;font-size:10pt;">Light Dull Teal</option>
              <option value="#99FFCC" style="font-family:'Arial';background-color:#99FFCC;font-size:10pt;">Pale Dull Teal</option>
              <option value="#00CC66" style="font-family:'Arial';background-color:#00CC66;font-size:10pt;">Dark Hard Teal</option>
              <option value="#33FF99" style="font-family:'Arial';background-color:#33FF99;font-size:10pt;">Light Hard Teal</option>
              <option value="#003366" style="font-family:'Arial';background-color:#003366;font-size:10pt;">Obscure Dull Azure</option>
              <option value="#336699" style="font-family:'Arial';background-color:#336699;font-size:10pt;">Dark Dull Azure</option>
              <option value="#6699CC" style="font-family:'Arial';background-color:#6699CC;font-size:10pt;">Light Dull Azure</option>
              <option value="#99CCFF" style="font-family:'Arial';background-color:#99CCFF;font-size:10pt;">Pale Dull Azure</option>
              <option value="#0066CC" style="font-family:'Arial';background-color:#0066CC;font-size:10pt;">Dark Hard Azure</option>
              <option value="#3399FF" style="font-family:'Arial';background-color:#3399FF;font-size:10pt;">Light Hard Azure</option>
              <option value="#330066" style="font-family:'Arial';background-color:#330066;font-size:10pt;">Obscure Dull Violet</option>
              <option value="#663399" style="font-family:'Arial';background-color:#663399;font-size:10pt;">Dark Dull Violet</option>
              <option value="#9966CC" style="font-family:'Arial';background-color:#9966CC;font-size:10pt;">Light Dull Violet</option>
              <option value="#CC99FF" style="font-family:'Arial';background-color:#CC99FF;font-size:10pt;">Pale Dull Violet</option>
              <option value="#6600CC" style="font-family:'Arial';background-color:#6600CC;font-size:10pt;">Dark Hard Violet</option>
              <option value="#9933FF" style="font-family:'Arial';background-color:#9933FF;font-size:10pt;">Light Hard Violet</option>
              <option value="#000000" style="font-family:'Arial';background-color:#000000;font-size:10pt;">Black</option>
              <option value="#333333" style="font-family:'Arial';background-color:#333333;font-size:10pt;">Obscure Gray</option>
              <option value="#666666" style="font-family:'Arial';background-color:#666666;font-size:10pt;">Dark Gray</option>
              <option value="#999999" style="font-family:'Arial';background-color:#999999;font-size:10pt;">Light Gray</option>
              <option value="#CCCCCC" style="font-family:'Arial';background-color:#CCCCCC;font-size:10pt;">Pale Gray</option>
              <option value="#FFFFFF" style="font-family:'Arial';background-color:#FFFFFF;font-size:10pt;">White</option>
            </select>
                                      </label></td>
                                  </tr>
                                  <tr>
                                    <td colspan="3" align="center" valign="middle" class="smallText"><input name="Submit" type="submit" class="button" value="  Add  " />
                                      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                                      <input name="reset" type="reset" class="button" value="  Reset  " />
									  <input type="hidden" name="statusid" value="<?=$row->as_id?>">
                                    </td>
                                  </tr>
                                </table>
                              </form></td>
                                  </tr>
                                </table>
                              <table border="0" cellspacing="0" cellpadding="0" align="center">
                                  <tr>
                                    <td></td>
                                  </tr>
                              </table></td>
                          </tr>
                        </table>
						<!-- InstanceEndEditable -->
						<table cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td><img src="images/1_q4.gif" border="0" alt="" width="10" height="10"></td>
								<td style="width:100%; background-image:url(images/1_li1.gif)"></td>
								<td><img src="images/1_q3.gif" border="0" alt="" width="10" height="10"></td>
							</tr>
						</table>
						


		
		
		</td>
<!-- body_text_eof //-->
    <td class="col_right">
<!-- right_navigation //-->
<table border="0"cellspacing="0" cellpadding="0" class="box_width_right">
	<tr><td></td>
		<td width="100%">
			<table border="0" cellspacing="0" cellpadding="0">
				<tr><td></td></tr>
			</table>
		</td>
	</tr>
</table>


    </td>
  </tr>
</table>

		</td>
	</tr>
	<tr>
		<td>
			<table cellpadding="0" cellspacing="0" border="0" style="height:98px; background-image:url(images/bot.gif)">
				<tr>
					<td>
						<table cellpadding="0" cellspacing="0" border="0" class="footer">
							<tr>									
								<td height="77"><img src="images/spacer.gif" border="0" alt="" width="25" height="1"></td>				
								<td style="width:207px"><br style="line-height:49px"><img src="images/p1.gif" border="0" alt="" width="145" height="24"><br></td>
							  <td style="width:532px">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table></td></tr></table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"></td>
  </tr>
</table>
</body>



<? if($row->color!="") { ?>
<script>
	document.frm.TN_Color.value = "<?=$row->color?>";
</script>
<? }?>

</html>